package com.nimt.hqgl_idea.controller;

import com.nimt.hqgl_idea.service.DishService;
import com.nimt.hqgl_idea.util.ResponseBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/dish")
public class DishController {
    @Autowired
    DishService dishService;
    @GetMapping("/query")
    public ResponseBody query(){
        return dishService.query();
    }
}